using UnityEngine;

public class Label : MonoBehaviour
{
	private string stringToEdit = "Please enter a string";

	private void Awake()
	{
		Application.RegisterLogCallback(LogCallback);
	}

	private void LogCallback(string condition, string stackTrace, LogType type)
	{
		stringToEdit = type.ToString() + ":" + stackTrace;
		UnityEngine.Debug.Log("STRING:" + stringToEdit);
	}

	private void Update()
	{
	}

	private void OnGUI()
	{
		GUILayout.Label(stringToEdit, GUILayout.Width(1920f), GUILayout.Height(1080f));
	}

	public void message(string str)
	{
		stringToEdit = str;
	}
}
